package com.open.capacity.common.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@Data
@TableName("crm_recruitment")
@EqualsAndHashCode(callSuper=true)

public class SysRecruitment  extends Model<SysRecruitment> implements Serializable {


    private static final long serialVersionUID = -5886012896705137070L;
    @TableId(value="id")  //雪花算法  id生成策略
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;
    @TableField(value="company_id")
    private Integer companyId;
    private String skills;
    @TableField(value="employee_count")
    private Integer employeeCount;
    private Integer experience;
    private String tasks;
//    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
//    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField(value="start_time")
    private String  startTime;
//    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
//    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField(value="end_time")
    private String endTime;
    private Boolean enabled;
    @TableField(value="cost_id")
    private Integer costId;
    private transient String companyname;


}
